import { NextRequest } from 'next/server'
import { SheetController } from '@/lib/controllers/sheet.controller'

const sheetController = new SheetController()

// 获取用户的表格列表
export async function GET(request: NextRequest) {
  return await sheetController.getUserSheets(request)
}

// 创建新表格
export async function POST(request: NextRequest) {
  return await sheetController.createSheet(request)
}